import cv2
import numpy as np
import matplotlib.pyplot as plt

gray = cv2.imread("img/scene.png", 0)

hist = cv2.equalizeHist(gray)

plt.imshow(np.hstack((gray, hist)), cmap="gray")
plt.show()
